<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/30
 * Time: 17:28
 */
namespace C\mod{
    use C\lib\Db;
    use C\lib\Sql;
    class voucher extends mod
    {

        protected static $__table_s = 'voucher';
        protected static $__primary_s = 'id';
        public static function row($uid){
            Db::connect();
            $count=Db::query("select count(id) as num from bd_voucher WHERE user_id=".$uid);
            $data = $count->fetch(\PDO::FETCH_ASSOC);
            return $data;
        }
    }
}